import service from "@/utils/request";

const API_URL = `/user/`;
const USER_API_URL = `${API_URL}user/`

export function login(data: any) {
  return service({
    url: `${API_URL}login`,
    method: "POST",
    data,
    __tips: false,
  });
}

export function getLoginInfo() {
  return service({
    url: `${USER_API_URL}getLoginInfo`,
    method: "GET",
  });
}

export function getActivity() {
  return service({
      url: `${API_URL}commonLogin/getActivity`,
      method: 'get',
  })
}

export function logout() {
  return service({
      url: `${API_URL}logout`,
      method: 'post',
  })
}